package com.heima.pojo.vo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import com.heima.entity.BusinessType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.lang.reflect.Type;
import java.time.LocalDateTime;
@AllArgsConstructor
@NoArgsConstructor
@Data
@TableName(autoResultMap = true)
public class TbNodeVo implements Serializable {
    private Long id;

    /**
     * 点位名称
     */
    private String name;

    /**
     * 点位详细地址
     */
    private String addr;

    /**
     * 所在区域Id
     */
    private String areaCode;

    /**
     * 创建人id
     */
    private Integer createUserId;

    /**
     * 区域id
     */
    private Long regionId;

    /**
     * 商圈id
     */
    private Integer businessId;

    /**
     * 点位主Id
     */
    private Integer ownerId;

    /**
     * 点位主名称
     */
    private String ownerName;

    /**
     * 更改时间
     */
    private LocalDateTime updateTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    private Integer vmCount;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private TbRegionVo region;

    @TableField(typeHandler = JacksonTypeHandler.class)
    private BusinessType businessType;
}
